﻿using UnityEngine;
using System.Collections;

public class DefaultFriendCell : MonoBehaviour {

	[HideInInspector] public int indexPath;

	public UILabel nameLabel;
	public UILabel levelLabel;
	public UILabel lastAccessLabel;
	public UILabel gradeLabel;
	public UILabel allianceNameLabel;

	public UIToggle trademarkToggle;

	public GameObject allianceGroup;
	public GameObject allianceNoneGroup;

	void Awake ()
	{
		allianceGroup.SetActive(false);
		allianceNoneGroup.SetActive(true);
	}

	void Start ()
	{

	}

	public void OnClick_DeleteFriend()
	{
		Debug.Log ("OnClick_DeleteFriend : " + indexPath);
		this.GetComponent<UIDragScrollView>().scrollView.GetComponent<DefaultFriendScrollView>().sceneManager.DeleteFriendProcess(indexPath);
	}

	public void OnClick_WriteMessage()
	{
		this.GetComponent<UIDragScrollView>().scrollView.GetComponent<DefaultFriendScrollView>().sceneManager.WriteMessageProcess(indexPath);
	}

}
